package com.ruoyi.sys.personnel.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.sys.personnel.service.TbPassService;
import com.ruoyi.sys.personnel.vo.TbPassVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "人员管理", tags = "人员管理接口")
@CrossOrigin
@RestController
public class TbPassController {
    @Autowired
    private TbPassService tbPassService;
    @ApiOperation(value = "人员通行记录接口-进出记录接口-查所有")
    @GetMapping("/pass")
    public R getAll(TbPassVO vo){
        return tbPassService.getAll(vo);
    }
}
